package com.javacode2018.demo2;


import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.BridgeMethodResolver;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.Method;
import java.util.concurrent.TimeUnit;

public class Demo2Test {

    @Test
    public void test1() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfig2.class);
        UserService userService = context.getBean(UserService.class);
        userService.insert1();
    }

    @Test
    public void test2() throws InterruptedException {

    }

    @Test
    public void test3(){

    }

}
